import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 6,
    menuWidth: 200,
    menu: true,
    header: true,
    addBtn: true,
    addBtnText: '新增',
    editBtn: true,
    delBtn: true,
    searchLabelWidth: 120,
    column: [
      {
        label: '船名',
        prop: 'p1',
        overHidden: true,
        search: true,

      },
      {
        label: '船籍港',
        prop: 'p2',
        dicData: self.shipSTypeArr,
        filterable: true,
        type: 'select',
        props: {
          label: 'lable',
          value: 'value'
        },
        overHidden: true,
      },
      {
        label: '船长',
        prop: 'p3',
        overHidden: true,
      },
      {
        label: '船宽',
        prop: 'p4',
        overHidden: true,
      },
      {
        label: '船舶类型',
        prop: 'p4',
        overHidden: true,
        search: true,
        type: 'select',
      },
      {
        label: '船舶类别',
        prop: 'p5',
        overHidden: true
      },
      {
        label: '总吨',
        prop: 'p6',
      },
      {
        label: '净吨',
        prop: 'p7',
      },
      {
        label: '参考载重吨',
        prop: 'p8',

      },
      {
        label: '舱口数据',
        prop: 'p9',
      },
      {
        label: 'IMO号',
        prop: 'p10',
      },
      {
        label: 'CN号',
        prop: 'p11',
      },
      {
        label: 'MMSI码',
        prop: 'p12',
      },
      {
        label: '船舶经营人或所有人',
        prop: 'p13',
      },
      {
        label: '船舶联系人',
        prop: 'p14',
      },
      {
        label: '联系方式',
        prop: 'p15',
      },
      {
        label: '预抵时间',
        prop: 'p16',
      },
      {
        label: '作业码头',
        prop: 'p17',
      },
      {
        label: '始发港',
        prop: 'p18',
      },
      {
        label: '目的港',
        prop: 'p19',
      },
      {
        label: '上一港',
        prop: 'p20',
      },
      {
        label: '下一港',
        prop: 'p21',
      },
      {
        label: '前吃水',
        prop: 'p22',
      },
      {
        label: '后吃水',
        prop: 'p23',
      },
      {
        label: '装卸标识',
        prop: 'p24',
      },
      {
        label: '货物类别',
        prop: 'p25',
      },
      {
        label: '货物名称',
        prop: 'p26',
      },
      {
        label: '货物数量',
        prop: 'p27',
      },
      {
        label: '船代',
        prop: 'p28',
      },
      {
        label: '贸别',
        prop: 'p29',
      },
      {
        label: '航次号',
        prop: 'p30',
      },
      {
        label: '船员人数',
        prop: 'p31',
      },
      {
        label: '船舶服务类型',
        prop: 'p32',
      },
    ]
  }
}
